package com.cruel_wandering.wifi_geo_predictor.wifi_simulation;

import android.net.wifi.ScanResult;

public class MyScanResult
{
	/**
	 * The address of the access point.
	 */
	public String BSSID;
	/**
	 * The network name.
	 */
	public String SSID;
	/**
	 * Describes the authentication, key management, and encryption schemes
	 * supported by the access point.
	 */
	public String capabilities;
	/**
	 * The frequency in MHz of the channel over which the client is
	 * communicating with the access point.
	 */
	public int frequency;
	/**
	 * The detected signal level in dBm.
	 */
	public int level;

	public MyScanResult(ScanResult sr)
	{
		this.BSSID = sr.SSID;
		this.SSID = sr.SSID;
		this.capabilities = sr.capabilities;
		this.frequency = sr.frequency;
		this.level = sr.level;
	}

	public MyScanResult(MyAccessPoint ap)
	{
		this.BSSID = ap.getMacAddr();
		this.SSID = "DummyAP " + ap.getMacAddr();
		/* XXX: Should it be in wpa_supplicant.conf format? */
		this.capabilities = "dummy capabilities";
		this.frequency = 54;
		this.level = 80;
	}
}